<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title></title>
    <link rel="stylesheet" href="__PUBLIC__/Css/public.css" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
<table class="table">
    <tr>
        <th>ID</th>
        <th>用户名称</th>
        <th>上一次登陆时间</th>
        <th>上一次登陆IP</th>
        <th>锁定状态</th>
        <th>用户所属组别</th>
        <th>操作</th>
    </tr>
    <foreach name="user" item="v">
        <tr>
            <td>{$v.id}</td>
            <td>{$v.username}</td>
            <td>{$v.logintime|date='Y-m-d H:i',###}</td>
            <td>{$v.loginip}</td>
            <td>
                <if condition="$v['lock']">锁定</if>
            </td>
            <td></td>
            <td>
                <if condition="$v['username'] eq C('RBAC_SUPERADMIN')">
                    超级管理员
                    <else/>
                    <ul>
                        <foreach name="v.role" item="value">
                            <li>{$value.name}({$value.remark})</li>
                        </foreach>
                    </ul>
                </if>

                <a href="">锁定</a>
            </td>
        </tr>
    </foreach>
</table>
</body>
</html>